package cn.edu.scau.sec.rw.model.pro_manage.simulation;

/**
 * 模拟时钟
 */
public class Clock {
    private static Integer systemClock = 0; //系统时钟
    private Integer relativeClock = 6; //相对时钟

    public Clock() {
    }

    public Clock(Integer systemClock, Integer relativeClock) {
        this.systemClock = systemClock;
        this.relativeClock = relativeClock;
    }

    public static Integer getSystemClock() {
        return systemClock;
    }

    public static void setSystemClock() {
        systemClock++;
    }

    public Integer getRelativeClock() {
        return relativeClock;
    }

    public void setRelativeClock(Integer relativeClock) {
        this.relativeClock = relativeClock;
    }

    @Override
    public String toString() {
        return "Clock{" +
                "systemClock=" + systemClock +
                ", relativeClock=" + relativeClock +
                '}';
    }
}
